       <div class="RightColumn">
            <div class="P10">
                <h2 class="Title01 P10 BorderBot01">Email templates</h2>
                <div class="P10">
                    <p class="FS12 P10Bot">
                    <?php
					//session_start(); 
		
					if($this->session->flashdata('message'))
						{
							echo $this->session->flashdata('message');
						}
					?>
                        Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra.
                    </p>

                    <div class="Container BorderBot02">
					    <div class="Picture1">
						    <ul class="CounterList">
                            <?php echo $all_link; ?>
                                &nbsp;
                            </ul>
					    </div>
                        <div class="Description">
                            <p class="W200 FlRight">
                                <a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/editmailtemplate/" class="Button01" title="upload new">add new template</a>
                            </p>
					    </div>				    
				    </div>

                    <table cellpadding="0" cellspacing="0" border="0" class="Table01">
                        <colgroup>
                            <col width="42%" />
                            <col width="20%" />
                            <col width="15%" />
                            <col width="10%" />
                            <col width="13%" />
                        </colgroup>
                        <tr>
                            <td>title</td>
                            <td>date</td>
                            <td>send</td>
                            <td>edit</td>
                            <td>delete item</td>
                        </tr>
                 <?php 
				 $i=0;
				foreach($banners as $item)
				{
					if($i%2!=0)
					{
				?>
                        <tr>
                            <td><p><?php echo $item['title']; ?></p></td>
                            <td><p><?php echo mydate($item['date_created']); ?></p></td>
                            <td><a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/sendmailtemplate/<?php echo $item['id']; ?>" class="Background02" title="download item">send newsletter</a></td>
                            <td><a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/editmailtemplate/<?php echo $item['id']; ?>" class="Background02" title="reupload item">edit item</a></td>
                            <td><a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/deleteemailtemplate/<?php echo $item['id']; ?>" class="Background03" title="delete item">delete item</a></td>
                        </tr>
                 <?php 
					}
					else
					{
				?>
                        <tr>
                            <td class="Background01"><p><?php echo $item['title']; ?></p></td>
                            <td class="Background01"><p><?php echo mydate($item['date_created']); ?></p></td>
                            <td class="Background01"><a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/sendmailtemplate/<?php echo $item['id']; ?>" class="Background02" title="download item">send newsletter</a></td>
                            <td class="Background01"><a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/editmailtemplate/<?php echo $item['id']; ?>" class="Background02" title="reupload item">edit item</a></td>
                            <td class="Background01"><a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/deleteemailtemplate/<?php echo $item['id']; ?>" class="Background03" title="delete item">delete item</a></td>
                        </tr>
				<?php 
					}
				$i++;
				}
				?>
                    </table>


                </div>
            </div>
       </div>

       
<script>
jQuery(document).ready(function(){
	jQuery("#mailtemplate").addClass('current');
});
</script>